﻿using System;
using System.Collections.Generic;
using System.Text;
namespace Ozner.Common
{
    /// <summary>
    /// Config模型类
    /// </summary>
    public class ConfigModel
    {
        #region OZNER站点的THEME
        private static string THEME_KEY = "THEME";
        public static string THEME
        {
            get { return ConfigUtils.GetValue(THEME_KEY); }
            set { ConfigUtils.SetValue(THEME_KEY, value); }
        }
        #endregion
        #region OZNER站点的pw
        private static string AUTO_LOGIN_KEY = "AUTO_LOGIN";
        public static bool AutoLogin
        {
            get { return bool.Parse(ConfigUtils.GetValue(AUTO_LOGIN_KEY).ToLower()); }
            set { ConfigUtils.SetValue(AUTO_LOGIN_KEY, value.ToString().ToUpper()); }
        }
        #endregion
        #region OZNER站点的pw
        private static string PASSWORD_KEY = "PASSWORD";
        public static string Password
        {
            get { return ConfigUtils.GetValue(PASSWORD_KEY); }
            set { ConfigUtils.SetValue(PASSWORD_KEY, value); }
        }
        #endregion
        #region OZNER站点的un
        private static string USER_NAME_KEY = "ACCOUNT";
        public static string UserName
        {
            get { return ConfigUtils.GetValue(USER_NAME_KEY); }
            set { ConfigUtils.SetValue(USER_NAME_KEY, value); }
        }
        #endregion
        #region OZNER站点的Cookies
        public static string Cookies { get; set; }
        #endregion
        #region OZNER站点的地址
        private static string OZNER_BASE_URL_KEY = "OZNER_BASE_URL";
        public static string BaseUrl
        {
            get { return ConfigUtils.GetValue(OZNER_BASE_URL_KEY); }
            set { ConfigUtils.SetValue(OZNER_BASE_URL_KEY, value); }
        }
        #endregion
        #region OZNER系统中文名
        private static string SYSTEM_NAME_KEY = "SYSTEM_NAME";
        public static string SystemName
        {
            get { return ConfigUtils.GetValue(SYSTEM_NAME_KEY); }
            set { ConfigUtils.SetValue(SYSTEM_NAME_KEY, value); }
        }
        #endregion
        #region OZNER系统登录页面地址
        private static string OZNER_LOGIN_URL = "OZNER_LOGIN_URL";
        public static string LoginUrl
        {
            get { return ConfigUtils.GetValue(OZNER_LOGIN_URL); }
            set { ConfigUtils.SetValue(OZNER_LOGIN_URL, value); }
        }
        #endregion
    }
}
